<template>
	<view class="navigate-bar">
		<view class="nav-left">
			<slot name="left"></slot>
		</view>
		<view class="nav-title">{{title}}</view>
		<view class="nav-right">
			<slot name="right"></slot>
		</view>
	</view>
</template>
<script>
	export default {
		name: "cc-navigate-bar",
		emits: [],
		props: {
			title: {
				type: String,
				default: ''
			}
		},
		data() {
			return {};
		}
	}
</script>

<style lang="scss" scoped>
	.navigate-bar {
		height: 88rpx;
		width: 100vw;
		display: flex;
		padding: 0;
		justify-content: space-between;
		align-items: center;

		.nav-left {
			width: 220rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
		}

		.nav-title {
			flex: 1;
			font-size: 32rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.nav-right {
			width: 220rpx;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
		}
	}
</style>